// 初始化样式
import '@/styles/common.scss'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { lazyPlugin } from "@/directives/index.js"

// 引入全局组件
import {componentPlugin} from "@/components/index.js"

// 引入持久化插件
 const app = createApp(App)
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)




app.use(pinia)
app.use(router)
app.use(componentPlugin)
app.use(ElementPlus)
app.use(lazyPlugin)
app.mount('#app')
